package com.atguigu04.block.interview;

import com.atguigu01._static.exer1.Account;

/**
 * @author liu
 * @create 16:03
 */
class HelloA {
    public HelloA() {
        System.out.println("HelloA");
    }

    {
        System.out.println("I'm A Class");
    }

    static {
        System.out.println("static A");
    }
}

class HelloB extends HelloA {
    public HelloB() {
        System.out.println("HelloB");
    }

    {
        System.out.println("I'm B Class");
    }

    static {
        System.out.println("static B");
    }


}

public class Test01 {
    public static void main(String[] args) {
        new HelloB();
    }
    /**先打印static类
     * static A
     * static B
     * 在打印父类非静态类（A）
     * I‘m A class
     * HelloA
     * 在打印子类非静态类（B）
     * I'm B Class
     * HelloB
     */

}
